package com.grape.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.grape.domain.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 *
 * 权限表 实体类
 *
 * @author  putao
 * @email   2628279194@qq.com
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_permission")
public class SysPermission extends BaseDomain implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 权限名称
     */
    @ApiModelProperty("权限名称")
    @NotBlank(message = "权限名称不能为空")
    private String name;

    /**
     * 操作符(多个时，隔开)
     */
    @ApiModelProperty("操作符(多个时，隔开)")
    @NotBlank(message = "操作符不能为空")
    private String operate;
    /**
     * 备注
     */
    @ApiModelProperty("备注")
    private String remark;
    /**
     * URL权限标识
     */
    @ApiModelProperty("URL权限标识")
    @NotBlank(message = "URL权限标识不能为空")
    private String url;
}
